﻿@using KPIS.GERP.Models.ICM
@model KPIS.GERP.Models.ICM.File 

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
    @Html.HiddenFor(model => model.FileId)
}
@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "create")
{
    
    @Html.HiddenFor(model => model.RefId, new { @value=ViewBag.Id})
 
    @Html.HiddenFor(model => model.RefType, new { @value=ViewBag.Type})
     
    
}

@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)


								<div class="span12">
									<div class="widget-box">
										<div class="widget-header">
											<h4>ข้อมูลเอกสารแนบ</h4>
											<span class="widget-toolbar">
												<a href="#" data-action="collapse">
													<i class="icon-chevron-up"></i>
												</a>
                                                 
											</span>
										</div>

										<div class="widget-body">
											<div class="widget-main">
                                                <div class="control-group">
					                                <div class="control-label">
						                                @Html.DisplayNameFor(model => model.FileName)
					                                </div>
					                                <div class="controls ">   
						                                @Html.TextBoxFor(model => model.FileName, new { @disabled="disabled" })
						                                @Html.Hidden("FileNameHidden")
						                                @Html.ValidationMessageFor(model => model.FileName)
					                                </div>            
				                                </div>
                                                <div class="control-group">
					                                <div class="control-label">
						                                @Html.DisplayNameFor(model => model.FileDescription)
					                                </div>
					                                <div class="controls ">   
						                                @Html.TextAreaFor(model => model.FileDescription, new { placeholder = "รายละเอียดเพิ่มเติม" })
						                                @Html.ValidationMessageFor(model => model.FileDescription)
					                                </div>            
				                                </div>
				                                <div class="control-group">
					                                <div class="control-label">
						                                @Html.DisplayNameFor(model => model.FilePath)
					                                </div>
					                                <div class="controls">                                                        
                                                         <input type="file" id="file" name="file" />
                                                        @Html.Raw("&nbsp<font color=red>*</font>")
					                                </div>            
				                                </div>
												
												
											</div>
										</div>
									</div>
								</div>


